Learn With Nathan

System Prompt

A system prompt is a special instruction or message provided to an AI language model at the start of a session to set the context, behavior, or constraints for the conversation. It helps guide the model's responses throughout the interaction.

Why Use a System Prompt?

Example

System Prompt: "You are a friendly customer support agent for an online bookstore."

With this prompt, the model will answer questions as if it were a support agent, staying in character and focusing on book-related topics.


System prompts are essential for shaping the initial behavior and tone of AI models in many applications.